package com.ejuornal.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ejuornal.bean.PerPeriodicalDetail;
import com.ejuornal.dao.PerPeriodicalDetailDao;
import com.ejuornal.service.PerPeriodicalDetailService;

@Component("perPeriodicalDetailService")
public class PerPeriodicalDetailServiceImpl implements
		PerPeriodicalDetailService {
	private PerPeriodicalDetailDao perPeriodicalDetailDao;

	public List<PerPeriodicalDetail> findBoardArtical(int perPeriodicalId) {
		return perPeriodicalDetailDao.findBoardArtical(perPeriodicalId, "3");
	}

	public List<PerPeriodicalDetail> findEditor(int periodicalId) {
		return perPeriodicalDetailDao.findEditor(periodicalId);
	}

	public List<PerPeriodicalDetail> findEditorCommit(int periodicalId) {
		return perPeriodicalDetailDao.findEditorCommit(periodicalId);
	}

	public PerPeriodicalDetailDao getPerPeriodicalArticalDao() {
		return perPeriodicalDetailDao;
	}

	@Resource(name = "perPeriodicalDetailDao")
	public void setPerPeriodicalArticalDao(PerPeriodicalDetailDao perPeriodicalDetailDao) {
		this.perPeriodicalDetailDao = perPeriodicalDetailDao;
	}
}
